﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Core.DBUtility;
using Microhard.Permission.Models;
using System.Web.Mvc;
using Microhard.Permission.Interface;

namespace Microhard.Permission.MVCFilter
{
    public interface IActionDataFilter
    {
        bool IsAdminAction { set; get; }
        Guid PKID { set; get; }
        bool FilterAction(System.Web.Mvc.ActionExecutingContext filterContext, Models.User currentUser, List<Models.Permission> currentPermissions, Core.DBUtility.ScopeResult dataScope);
    }

    public interface IAfterActionDataFilter
    {
        void FilterAction(System.Web.Mvc.ActionExecutedContext filterContext, Models.User currentUser);
        IDataPermission DataPermission { set; get; }
    }

}
